<table cellpadding="0" cellspacing="0" width="100%" align="left" class="table-list">
    <col width="90%">
    <col width="5%">
    <col width="5%">
    <?php foreach ($arySlider as $key => $value) {?>
    <tr class="<?php echo ($key % 2 == 0) ? 'alt' : '' ?>">
        <td>
            <div>
                <?php echo $value['slider_title'];?>
            </div>
            <div>
                <img src="<?php echo $value['slider_image'];?>">
            </div>
            <div>
                <?php echo $value['slider_link'];?>
            </div>
            
        </td>
        <td>
            <div>
                <span class="cpointer" onclick="AdminController.showEditSlider('<?php echo $value['slider_id']; ?>');"><img src="/public/images/form/icon-edit.gif" title="Sửa slider này"></span>
            </div>
        </td>
        <td>
            <?php if($type == 'active'){?>
                <div>
                    <span class="cpointer" onclick="AdminController.deleteSlider('<?php echo $value['slider_id']; ?>');"><img src="/public/images/form/delete.png" title="Xóa "></span>
                </div>
            <?php }?>
        </td>
    </tr>
    <tr class="<?php echo ($key % 2 == 0) ? 'alt' : '' ?>">
        <td colspan="3">
            <div id="slider<?php echo $value['slider_id'];?>" class="hide">
                <form id="frmEditSlider<?php echo $value['slider_id'];?>" name="frmEditSlider<?php echo $value['slider_id'];?>" enctype="multipart/form-data">
                    <span>Tiêu đề</span>
                    <span><input type="text" name="slider_title" class="w110p" value="<?php echo $value['slider_title'];?>"></span>
                    <span>Link</span>
                    <span><input type="text" name="slider_link" class="w110p" value="<?php echo $value['slider_link'];?>"></span>
                    <span>Ảnh</span>
                    <span><input type="file" name="slider_image[]" size="20"></span>
                    <span><input type="button" value="Lưu" class="submit" onclick="AdminController.editSlider('<?php echo $value['slider_id'];?>');"></span>
                    <span><input type="button" value="Hủy" class="submit" onclick="AdminController.cancelEditSlider('<?php echo $value['slider_id'];?>');"></span>
                </form>
            </div>
        
        </td>
    </tr>
    <?php } ?>
</table>
<div class="clear"></div>
<div align="right"><?php echo $strPaging; ?></div>